< previous page page_310 next page >

Page 310
Next, open the Property Pages dialog box for the control, add the values shown in Figure 11.13, and then click OK. Finally, run the application and test the combo box by clicking the arrow to display the drop-down list.
12181-0310a.gif
Figure 11.13.
Entering the properties for the custom
control by using the new Property Pages
dialog box.
Using the ActiveX Control Test Container
Included with Visual Basic 6 is a new utility called the ActiveX Control Test Container. This tool allows you to load an ActiveX control that you have created in order to test each of the events that you have added to the control. This enables you to verify that the control is setting and passing the correct information back to the application. This utility is started from the Visual Basic Start Menu group. Once the tool is started, you can then test any control by selecting File, New from the menu and then choosing the control to test. The chosen control will be displayed as shown in Figure 11.14.
12181-0310b.gif
Figure 11.14.
Using the Test Container to ensure that a new custom
control works properly.

 
< previous page page_310 next page >

If you like this book, buy it!